package com.itheima.day01_text1.mapper;
import com.itheima.day01_text1.domain.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * @Author: 祺诺
 * @Name; xqf
 * @Date: 2021/3/3 19:18
 */
@Mapper
@Repository
public interface UserMapper {

    @Insert("Insert into user Values (#{username},#{password})")
    void save(User user);
    @Select("Select * from user Where username = #{username}  and password = #{password}")
    User select(User user);
}
